package com.le.tester.book.concurrentjavafight.l6_1_1;

import java.net.ServerSocket;
import java.net.Socket;

/**
 * createTime：2022/10/15 9:53
 * description：不同调度策略的同步特性,不通过多个线程来提高响应的时间，那么在nio中，也是可以优化响应时间的
 */
public class SingleThreadWebServer {
    public static void main(String[] args) throws Exception {
        ServerSocket serverSocket = new ServerSocket(80);

        while (true) {
            Socket accept = serverSocket.accept();
        }
    }
}
